const mongoose = require('./db')

const studentSchema = mongoose.Schema({
    name: String, // 备注名
    nickname: String, // 微信昵称
    age: Number, // 年龄
    gender: { // 性别 0：女，1：男
        type: Number,
        default: 1
    },
    content: String,// 介绍信息
    openid: String // 微信OpenId
})

module.exports = mongoose.model('Student', studentSchema, 'students')
